import request from '@/plugin/axios'

const api = process.env.VUE_APP_AUTH_API

export function fetchUserInfo () {
  return request({
    url: api + '/sys/user/getUserInfo',
    method: 'get'
  })
}

export function setBelong (params) {
  // pid 项目id
  return request({
    url: api + '/sys/login/setBelong',
    method: 'get',
    params
  })
}

export function exit () {
  return request({
    url: api + '/sys/login/userexit',
    method: 'get'
  })
}
